package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SysSeqFinTrans generated by hbm2java
 */
@Entity
@Table(name="sys_seq_fin_trans"
    ,catalog="lmis"
)
public class SysSeqFinTrans  implements java.io.Serializable {


     private SysSeqFinTransId id;
     private SysOrg sysOrg;
     private String prefix01;
     private Integer currentSeqNo;
     private Date currentDatePrefix01;

    public SysSeqFinTrans() {
    }

	
    public SysSeqFinTrans(SysSeqFinTransId id, SysOrg sysOrg) {
        this.id = id;
        this.sysOrg = sysOrg;
    }
    public SysSeqFinTrans(SysSeqFinTransId id, SysOrg sysOrg, String prefix01, Integer currentSeqNo, Date currentDatePrefix01) {
       this.id = id;
       this.sysOrg = sysOrg;
       this.prefix01 = prefix01;
       this.currentSeqNo = currentSeqNo;
       this.currentDatePrefix01 = currentDatePrefix01;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="orgNo", column=@Column(name="ORG_NO", nullable=false) ), 
        @AttributeOverride(name="loanContractGrpNo", column=@Column(name="LOAN_CONTRACT_GRP_NO", nullable=false) ), 
        @AttributeOverride(name="finTransTypeNo", column=@Column(name="FIN_TRANS_TYPE_NO", nullable=false) ) } )
    public SysSeqFinTransId getId() {
        return this.id;
    }
    
    public void setId(SysSeqFinTransId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ORG_NO", nullable=false, insertable=false, updatable=false)
    public SysOrg getSysOrg() {
        return this.sysOrg;
    }
    
    public void setSysOrg(SysOrg sysOrg) {
        this.sysOrg = sysOrg;
    }

    
    @Column(name="PREFIX01", length=10)
    public String getPrefix01() {
        return this.prefix01;
    }
    
    public void setPrefix01(String prefix01) {
        this.prefix01 = prefix01;
    }

    
    @Column(name="CURRENT_SEQ_NO")
    public Integer getCurrentSeqNo() {
        return this.currentSeqNo;
    }
    
    public void setCurrentSeqNo(Integer currentSeqNo) {
        this.currentSeqNo = currentSeqNo;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="CURRENT_DATE_PREFIX01", length=10)
    public Date getCurrentDatePrefix01() {
        return this.currentDatePrefix01;
    }
    
    public void setCurrentDatePrefix01(Date currentDatePrefix01) {
        this.currentDatePrefix01 = currentDatePrefix01;
    }




}


